home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / gfx / conv / amigajpegv4.lha / jpeg-v4 / man / cjpeg.man < prev    next >
Text File  |  1993-01-10  |  14KB  |  261 lines

  1.  
  2.  
  3.  
  4.  CCCCJJJJPPPPEEEEGGGG((((1111))))                                                           CCCCJJJJPPPPEEEEGGGG((((1111))))
  5.                                4444 NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999992222
  6.  
  7.  
  8.  
  9.  NNNNAAAAMMMMEEEE
  10.       cjpeg - compress an image file to a JPEG file
  11.  
  12.  SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       ccccjjjjppppeeeegggg [ ----qqqquuuuaaaalllliiiittttyyyy _N ] [ ----ggggrrrraaaayyyyssssccccaaaalllleeee ] [ ----ooooppppttttiiiimmmmiiiizzzzeeee ] [ ----ttttaaaarrrrggggaaaa ] [
  14.       ----mmmmaaaaxxxxmmmmeeeemmmmoooorrrryyyy _N ] [ ----rrrreeeessssttttaaaarrrrtttt _N ] [ ----ssssmmmmooooooootttthhhh _N ] [ ----vvvveeeerrrrbbbboooosssseeee ] [ ----ddddeeeebbbbuuuugggg ] [
  15.       ----aaaarrrriiiitttthhhhmmmmeeeettttiiiicccc ] [ ----nnnnooooiiiinnnntttteeeerrrrlllleeeeaaaavvvveeee ] [ ----qqqqttttaaaabbbblllleeeessss _f_i_l_e ] [ ----ssssaaaammmmpppplllleeee _H_x_V[,...] ]
  16.       [ _f_i_l_e_n_a_m_e ]
  17.  
  18.  DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.       ccccjjjjppppeeeegggg compresses the named image file, or the standard input if no
  20.       file is named, and produces a JPEG/JFIF file on the standard output.
  21.       The currently supported input file formats are: PPM (PBMPLUS color
  22.       format), PGM (PBMPLUS gray-scale format), GIF, Targa, and RLE (Utah
  23.       Raster Toolkit format).  (RLE is supported only if the URT library is
  24.       available.)
  25.  
  26.  OOOOPPPPTTTTIIIIOOOONNNNSSSS
  27.       All switch names may be abbreviated; for example, ----ggggrrrraaaayyyyssssccccaaaalllleeee may be
  28.       written ----ggggrrrraaaayyyy or ----ggggrrrr.  Most of the "basic" switches can be abbreviated
  29.       to as little as one letter.  Upper and lower case are equivalent (thus
  30.       ----GGGGIIIIFFFF is the same as ----ggggiiiiffff).  British spellings are also accepted (e.g.,
  31.       ----ggggrrrreeeeyyyyssssccccaaaalllleeee), though for brevity these are not mentioned below.
  32.  
  33.       The basic switches are:
  34.  
  35.       ----qqqquuuuaaaalllliiiittttyyyy _N
  36.            Scale quantization tables to adjust image quality.  Quality is 0
  37.            (worst) to 100 (best); default is 75.  (See below for more info.)
  38.  
  39.       ----ggggrrrraaaayyyyssssccccaaaalllleeee
  40.            Create monochrome JPEG file from color input.  Be sure to use
  41.            this switch when compressing a grayscale GIF file, because ccccjjjjppppeeeegggg
  42.            isn't bright enough to notice whether a GIF file uses only shades
  43.            of gray.  By saying ----ggggrrrraaaayyyyssssccccaaaalllleeee, you'll get a smaller JPEG file
  44.            that takes less time to process.
  45.  
  46.       ----ooooppppttttiiiimmmmiiiizzzzeeee
  47.            Perform optimization of entropy encoding parameters.  Without
  48.            this, default encoding parameters are used.  ----ooooppppttttiiiimmmmiiiizzzzeeee usually
  49.            makes the JPEG file a little smaller, but ccccjjjjppppeeeegggg runs somewhat
  50.            slower and needs much more memory.  Image quality and speed of
  51.            decompression are unaffected by ----ooooppppttttiiiimmmmiiiizzzzeeee.
  52.  
  53.       ----ttttaaaarrrrggggaaaa
  54.            Input file is Targa format.  Targa files that contain an
  55.            "identification" field will not be automatically recognized by
  56.            ccccjjjjppppeeeegggg; for such files you must specify ----ttttaaaarrrrggggaaaa to make ccccjjjjppppeeeegggg treat
  57.            the input as Targa format.
  58.  
  59.  
  60.  
  61.                                     - 1 -       Formatted:  January 10, 1993
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  CCCCJJJJPPPPEEEEGGGG((((1111))))                                                           CCCCJJJJPPPPEEEEGGGG((((1111))))
  69.                                4444 NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999992222
  70.  
  71.  
  72.  
  73.       The ----qqqquuuuaaaalllliiiittttyyyy switch lets you trade off compressed file size against
  74.       quality of the reconstructed image: the higher the quality setting,
  75.       the larger the JPEG file, and the closer the output image will be to
  76.       the original input.  Normally you want to use the lowest quality
  77.       setting (smallest file) that decompresses into something visually
  78.       indistinguishable from the original image.  For this purpose the
  79.       quality setting should be between 50 and 95; the default of 75 is
  80.       often about right.  If you see defects at ----qqqquuuuaaaalllliiiittttyyyy 75, then go up 5 or
  81.       10 counts at a time until you are happy with the output image.  (The
  82.       optimal setting will vary from one image to another.)
  83.  
  84.       ----qqqquuuuaaaalllliiiittttyyyy 100 will generate a quantization table of all 1's,
  85.       eliminating loss in the quantization step (but there is still
  86.       information loss in subsampling, as well as roundoff error).  This
  87.       setting is mainly of interest for experimental purposes.  Quality
  88.       values above about 95 are nnnnooootttt recommended for normal use; the
  89.       compressed file size goes up dramatically for hardly any gain in
  90.       output image quality.
  91.  
  92.       In the other direction, quality values below 50 will produce very
  93.       small files of low image quality.  Settings around 5 to 10 might be
  94.       useful in preparing an index of a large image library, for example.
  95.       Try ----qqqquuuuaaaalllliiiittttyyyy 2 (or so) for some amusing Cubist effects.  (Note:
  96.       quality values below about 25 generate 2-byte quantization tables,
  97.       which are considered optional in the JPEG standard.  ccccjjjjppppeeeegggg emits a
  98.       warning message when you give such a quality value, because some
  99.       commercial JPEG programs may be unable to decode the resulting file.)
  100.  
  101.       Switches for advanced users:
  102.  
  103.       ----mmmmaaaaxxxxmmmmeeeemmmmoooorrrryyyy _N
  104.            Set limit for amount of memory to use in processing large images.
  105.            Value is in thousands of bytes, or millions of bytes if "M" is
  106.            attached to the number.  For example, ----mmmmaaaaxxxx 4444mmmm selects 4000000
  107.            bytes.  If more space is needed, temporary files will be used.
  108.  
  109.       ----rrrreeeessssttttaaaarrrrtttt _N
  110.            Emit a JPEG restart marker every N MCU rows, or every N MCU
  111.            blocks if "B" is attached to the number.  ----rrrreeeessssttttaaaarrrrtttt 0000 (the
  112.            default) means no restart markers.
  113.  
  114.       ----ssssmmmmooooooootttthhhh _N
  115.            Smooth the input image to eliminate dithering noise.  N, ranging
  116.            from 1 to 100, indicates the strength of smoothing.  0 (the
  117.            default) means no smoothing.
  118.  
  119.       ----vvvveeeerrrrbbbboooosssseeee
  120.            Enable debug printout.  More ----vvvv's give more output.  Also,
  121.            version information is printed at startup.
  122.  
  123.  
  124.  
  125.                                     - 2 -       Formatted:  January 10, 1993
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  CCCCJJJJPPPPEEEEGGGG((((1111))))                                                           CCCCJJJJPPPPEEEEGGGG((((1111))))
  133.                                4444 NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999992222
  134.  
  135.  
  136.  
  137.       ----ddddeeeebbbbuuuugggg
  138.            Same as ----vvvveeeerrrrbbbboooosssseeee.
  139.  
  140.       The ----rrrreeeessssttttaaaarrrrtttt option inserts extra markers that allow a JPEG decoder to
  141.       resynchronize after a transmission error.  Without restart markers,
  142.       any damage to a compressed file will usually ruin the image from the
  143.       point of the error to the end of the image; with restart markers, the
  144.       damage is usually confined to the portion of the image up to the next
  145.       restart marker.  Of course, the restart markers occupy extra space.
  146.       We recommend ----rrrreeeessssttttaaaarrrrtttt 1111 for images that will be transmitted across
  147.       unreliable networks such as Usenet.
  148.  
  149.       The ----ssssmmmmooooooootttthhhh option filters the input to eliminate fine-scale noise.
  150.       This is often useful when converting GIF files to JPEG: a moderate
  151.       smoothing factor of 10 to 50 gets rid of dithering patterns in the
  152.       input file, resulting in a smaller JPEG file and a better-looking
  153.       image.  Too large a smoothing factor will visibly blur the image,
  154.       however.
  155.  
  156.       Switches for wizards:
  157.  
  158.       ----aaaarrrriiiitttthhhhmmmmeeeettttiiiicccc
  159.            Use arithmetic coding rather than Huffman coding.  (Not currently
  160.            supported for legal reasons.)
  161.  
  162.       ----nnnnooooiiiinnnntttteeeerrrrlllleeeeaaaavvvveeee
  163.            Generate noninterleaved JPEG file (not yet supported).
  164.  
  165.       ----qqqqttttaaaabbbblllleeeessss _f_i_l_e
  166.            Use the quantization tables given in the specified file.  The
  167.            file should contain one to four tables (64 values each) as plain
  168.            text.  Comments preceded by '#' may be included in the file.  The
  169.            tables are implicitly numbered 0,1,etc.  If ----qqqquuuuaaaalllliiiittttyyyy N is also
  170.            specified, the values in the file are scaled according to ccccjjjjppppeeeegggg's
  171.            quality scaling curve.
  172.  
  173.       ----ssssaaaammmmpppplllleeee _H_x_V[,...]
  174.            Set JPEG sampling factors.  If you specify fewer H/V pairs than
  175.            there are components, the remaining components are set to 1x1
  176.            sampling.  The default setting is equivalent to ----ssssaaaammmmpppplllleeee 2222xxxx2222.
  177.  
  178.       The "wizard" switches are intended for experimentation with JPEG.  If
  179.       you don't know what you are doing, ddddoooonnnn''''tttt uuuusssseeee tttthhhheeeemmmm.  You can easily
  180.       produce files with worse image quality and/or poorer compression than
  181.       you'll get from the default settings.  Furthermore, these switches
  182.       should not be used when making files intended for general use, because
  183.       not all JPEG implementations will support unusual JPEG parameter
  184.       settings.
  185.  
  186.  EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  187.       This example compresses the PPM file foo.ppm with a quality factor of
  188.  
  189.  
  190.                                     - 3 -       Formatted:  January 10, 1993
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  CCCCJJJJPPPPEEEEGGGG((((1111))))                                                           CCCCJJJJPPPPEEEEGGGG((((1111))))
  198.                                4444 NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999992222
  199.  
  200.  
  201.  
  202.       60 and saves the output as foo.jpg:
  203.  
  204.            ccccjjjjppppeeeegggg ----qqqquuuuaaaalllliiiittttyyyy _6_0 _f_o_o._p_p_m >>>> _f_o_o._j_p_g
  205.  
  206.  EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  207.       JJJJPPPPEEEEGGGGMMMMEEEEMMMM
  208.            If this environment variable is set, its value is the default
  209.            memory limit.  The value is specified as described for the
  210.            ----mmmmaaaaxxxxmmmmeeeemmmmoooorrrryyyy switch.  JJJJPPPPEEEEGGGGMMMMEEEEMMMM overrides the default value specified
  211.            when the program was compiled, and itself is overridden by an
  212.            explicit ----mmmmaaaaxxxxmmmmeeeemmmmoooorrrryyyy.
  213.  
  214.  SSSSEEEEEEEE AAAALLLLSSSSOOOO
  215.       ddddjjjjppppeeeegggg(1)
  216.       ppppppppmmmm(5), ppppggggmmmm(5)
  217.       Wallace, Gregory K.  "The JPEG Still Picture Compression Standard",
  218.       Communications of the ACM, April 1991 (vol. 34, no. 4), pp. 30-44.
  219.  
  220.  AAAAUUUUTTTTHHHHOOOORRRR
  221.       Independent JPEG Group
  222.  
  223.  BBBBUUUUGGGGSSSS
  224.       Arithmetic coding and interleaved output not yet supported.
  225.  
  226.       Not all variants of Targa file format are supported.
  227.  
  228.       The ----ttttaaaarrrrggggaaaa switch is not a bug, it's a feature.  (It would be a bug if
  229.       the Targa format designers had not been clueless.)
  230.  
  231.       Still not as fast as we'd like.
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.                                     - 4 -       Formatted:  January 10, 1993
  255.  
  256.  
  257.  
  258.